using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class pages_CheckoutCustomBooking : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CustomBooking cb = Session["c_booking"] as CustomBooking;
        User user = Session["user"] as User;
        if (cb == null || user==null) lblMessage.Text = "Sorry! Error has occured. Please try later.";
        lblCustomerName.Text = user.PersonInfor.FirstName + " " + user.PersonInfor.LastName;
        lblEmail.Text = user.PersonInfor.Email;
        lblAddress.Text = user.PersonInfor.Address;
        lblPhone.Text = user.PersonInfor.Phone;
        lblNumberOfGuests.Text = cb.GuestNumber.ToString();
        lblDepartureDate.Text = cb.DepartureTime.ToShortDateString();
        lblMidifiedDate.Text = cb.ModifiedDate.ToString("MMM, dd yyyy - hh:mm tt");
        lblLocation.Text = cb.DeparturePlace.Name + " - " + cb.ArrivalPlace.Name;
        lblFacility.Text = cb.Facility.Name;
        
      
    }
}
